// Copyright [2020] <unknown>
#include <bits/stdc++.h>
using namespace std;
// #define ONLINE_JUDGE
#ifndef ONLINE_JUDGE
#define dbg(x...) { cerr << "\033[32;1m" << #x << " -> "; err(x); }
void err() { cerr << "\033[39;0m" << endl; }
template<typename T, typename... A>
void err(T a, A... x) { cerr << a << ' '; err(x...); }
#else
#define dbg(...)
#endif

#define sz(x) ((int)x.size())

typedef long long LL;

const int N = 205*205*205;

int n, m, k;

char s[N];


int main(int argc, char const *argv[]) {
    // code
    scanf("%d%d%d", &n, &m, &k);
    int len = 0;
    for (int i=0; i<n-1; ++i)
        s[len++] = 'D';
    for (int i=0; i<m-1; ++i)
        s[len++] = 'L';
    char cur = 'R';
    for (int i=0; i<n; ++i) {
        for (int j=0; j<m-1; ++j)
            s[len++] = cur;
        s[len++] = 'U';
        if (cur == 'R')
            cur = 'L';
        else
            cur = 'R';
    }
    --len;
    s[len] = 0;
    printf("%d\n%s\n", len, s);

    return 0;
}
